package com.shop.dao;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.shop.pojo.Evaluate;
import com.shop.pojo.Goods;
import com.shop.pojo.Order;
import com.shop.pojo.ShopCart;
import com.shop.pojo.User;

public class Test {
	public static void main(String[] args) {
//		GoodsDao dao = new GoodsDao();
//		List<Goods> list = dao.selectAllGoods(1);
//		for (Goods g : list) {
//			System.out.println(g.toString());
//		}
//		UserDao dao = new UserDao();
//		dao.checkUser("admin");
//		User u = new User( "a1", "110", "321", "长撒谎");
//		
//		int count = dao.Reg(u);
//		System.out.println("插入行数"+count);
//		System.out.println("行数："+dao.forgetPwd("a1", "110", "999"));
//		List<Evaluate> list = new ArrayList<Evaluate>();
//		list = dao.getEval();
//		for (Evaluate e : list) {
//			System.out.println(e.toString());
//		}
//		Evaluate e = new Evaluate("aaaa", new Date(), "chen");
//		dao.writeEval(e);
//		GoodsDao dao = new GoodsDao();
//		List<Goods> list = dao.showAllSc("chen");
//		for (Goods s : list) {
//			System.out.println(s.toString());
//		}
//		UserDao dao = new UserDao();
//		List<Order>  list = dao.getOrders("chen");
//		for (Order order : list) {
//			System.out.println(order.toString());
//		}
		GoodsDao dao = new GoodsDao();
//		dao.deleteSc("chen", 4);
	}
}
